package com.zheng.damo1.HomeWearkday20;

import java.util.Arrays;

public class Test01{
    public static void main(String[] args) {
        String str="123456dfs";
        MysubStringIntegerface newstr = new MysubStringIntegerface() {
            @Override
            public String revers(String str) {
                char[] ch=str.toCharArray();
                char[] arr=new char[ch.length];
                for (int i = 0; i < ch.length; i++) {
                    arr[i]=ch[ch.length-i-1];
                }
                String sum="";
                for (int i = 0; i < arr.length; i++) {
                    sum=sum+arr[i];
                }
                return sum;
            }
        };
        String revers = newstr.revers(str);

        System.out.println(revers);
    }


}
